package com.zh.test.genericT;


import com.alibaba.fastjson.JSONArray;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

public class genericTImpl implements genericT<String> {
    @Override
    public String show() {
        return "hello world";
    }

    public static void main(String[] args) {
        String zid = "z_1";
        String[] ids =  zid.split("_");
        String id = ids[1];
        String jsonRule = "[{\"0\":\"zhangsan\",\"1\":\"lisi\",\"2\":\"wangwu\",\"3\":\"maliu\"}," +
                "{\"00\":\"zhangsan\",\"11\":\"lisi\",\"22\":\"wangwu\",\"33\":\"maliu\"}]";
        List<HashMap<String,String>> hashMapList = (List<HashMap<String,String>>) JSONArray.parse(jsonRule);
        String jsonRule2 = "[{\"1\":\"zhangsan\",\"1\":\"lisi\",\"2\":\"wangwu\",\"3\":\"maliu\"}," +
                "{\"00\":\"zhangsan\",\"11\":\"lisi\",\"22\":\"wangwu\",\"33\":\"maliu\"}]";

        hashMapList = null;
        hashMapList = (List<HashMap<String,String>>) JSONArray.parse(jsonRule);
        int i = 1;
    }
}
